package com.atguigu.auth.service;

import com.atguigu.common.result.Result;
import com.atguigu.model.system.SysRole;
import com.atguigu.vo.system.AssignRoleVo;
import com.atguigu.vo.system.SysRoleQueryVo;
import com.atguigu.vo.system.SysRoleSaveVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface SysRoleService extends IService<SysRole> {
    IPage<SysRole> pageQuery(Integer current, Integer limit, SysRoleQueryVo vo);

    Result<String> saveRole(SysRoleSaveVo saveVo);

    Result<String> updateRole(SysRoleSaveVo saveVo);

    Map<String,Object> getRoleByUserId(Long userId);

    void doAssign(AssignRoleVo vo);
}
